"""使用字典，完成数据的记录和操作"""
employer = {
    "王力宏":
        {"部门": "科技部", "工资": 3000, "级别": 1},
    "周杰伦":
        {"部门": "市场部", "工资": 5000, "级别": 2},
    "林俊杰":
        {"部门": "市场部", "工资": 7000, "级别": 3},
    "张学友":
        {"部门": "科技部", "工资": 4000, "级别": 1},
    "刘德华":
        {"部门": "市场部", "工资": 6000, "级别": 2},
}
print(employer)
print(employer["刘德华"])
"""给所有级别为1的员工上升一级，工资加1000"""
for key in employer:
    if employer[key]["级别"]==1:
        employer[key]["级别"]=2
        employer[key]["工资"]+=1000
    print(employer[key])
print(employer)
